package cn.codinglives.demo.order.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "logistic-service", fallback = LogisticServiceFallbackService.class)
public interface LogisticService {

     @RequestMapping (value = "/logistic/delivery", method = RequestMethod.GET)
     String delivery(@RequestParam String orderId);
}
